<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var b = 0 || "abc";   //return abc;
        var c = "abc" || 1 ;   //return abc;
        var d = 0 || NaN;    //return NaN;
        console.log(d);
        console.log(c);
        console.log(d);
        var b1 = 0 && "abc";   //return abc;
        var c1 = "abc" && 0 ;   //return abc;
        var d1 = 1 && "abc";    //return NaN;
        console.log(b1);
        console.log(c1);
        console.log(d1);
    </script>
</body>

</html>